@import '../common.less';
.screen-swiper image,
.swiper-item image {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    pointer-events: none;
}
swiper {
    .wx-swiper-dot.wx-swiper-dot-active {
        opacity: 1!important;
    }
    &.square-dot {
        .wx-swiper-dot {
            background-color: rgba(0, 0, 0, .6);
            opacity: .4;
            width: 12rpx;
            height: 12rpx;
            border-radius: 50%;
            margin: 0 8rpx !important;
            &.wx-swiper-dot-active {
                width: 36rpx;
                border-radius: 24rpx!important;
            }
        }
    }
    &.round-dot {
        .wx-swiper-dot {
            background-color: rgba(0, 0, 0, .6);
            opacity: .4;
            width: 16rpx;
            height: 16rpx;
            border-radius: 50%;
            margin: 0 8rpx !important;
            position: relative;
            &.wx-swiper-dot-active::after {
                content: '';
                position: absolute;
                width: 8rpx;
                height: 8rpx;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                margin: auto;
                background-color: var(--white);
                border-radius: 20rpx;
            }
        }
    }
    &.card-swiper {
        margin-top: 24rpx;
        swiper-item {
            width: 560rpx !important;
            left: 90rpx;
            box-sizing: border-box;
            padding: 40rpx 0 60rpx;
            .swiper-item {
                width: 100%;
                height: 100%;
                display: block;
                border-radius: 12rpx;
                transform: scale(.85);
                transition: all .2s ease-in 0s;
                overflow: hidden;
            }
            &.current {
                .swiper-item {
                    transform: none;
                    transition: all .2s ease-in 0s;
                }
            }
        }
    }
}
.stack-swiper {
    max-width: 100%;
    position: relative;
    overflow: hidden;
    .stack-item {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        bottom: 0;
        left: 50%;
        margin: auto;
        transition: all 0.2s ease-in 0s;
        opacity: 1;
        transform: scale(~'calc(.3 + var(--index) / 10)');
		margin-left: ~'calc(var(--left) * 100rpx - 360rpx)';
		z-index: var(--index);
        &.none {
            opacity: 0;
        }
        .swiper-item {
            width: 100%;
            height: 100%;
            border-radius: 6rpx;
            overflow: hidden;
        }
    }
    &.square-dot {
        .wx-swiper-dot {
            background-color: rgba(0, 0, 0, .6);
            opacity: .4;
            width: 12rpx;
            height: 12rpx;
            border-radius: 50%;
            margin: 0 8rpx !important;
            &.wx-swiper-dot-active {
                width: 36rpx;
                border-radius: 24rpx!important;
                background-color: currentColor;
            }
        }
    }
    &.round-dot {
        .wx-swiper-dot {
            background-color: rgba(0, 0, 0, .6);
            opacity: .4;
            width: 16rpx;
            height: 16rpx;
            border-radius: 50%;
            margin: 0 8rpx !important;
            position: relative;
            &.wx-swiper-dot-active {
                background-color: currentColor;
                &::after {
                    content: '';
                    position: absolute;
                    width: 8rpx;
                    height: 8rpx;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    margin: auto;
                    background-color: var(--white);
                    border-radius: 20rpx;
                }
            }
        }
    }
    .swiper-dot {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(~'calc(-50% - 12rpx)', 0);
    }
}
.cutting-swiper {
    width: 100%;
    margin: 20rpx auto;
    position: relative;
    .cutting-item {
        position: absolute;
        width: 20%;
        height: 100%;
        transition: all .618s;
        /* 设置子元素在3D空间中呈现 */
        transform-style: preserve-3d;
        .img {
            width: 100%;
            height: 100%;
            position: absolute;
            background-size: cover;
            background-repeat: no-repeat;
        }
    }
}